<!--
 * @Author: Hzt
 * @Date: 2024-01-11 17:48:43
 * @LastEditTime: 2025-02-18 11:32:32
 * @LastEditors: Hzt
 * @Description: *** 
 * @FilePath: \cty_admin\src\views\withdrawal\withdrawalList\permission.vue
-->
<template>
  <MyDialog title="权限" width="500px" :visible="showDialog" @ok="handleConfirmClick" @close="close">
    <el-form label-position="right" label-width="120px" :model="formData">
      <el-form-item label="对私:">
        <!-- <el-switch v-model="formData.toBank"></el-switch> -->
        <el-radio-group v-model="formData.toBank">
          <el-radio :label="true">
            是
          </el-radio>
          <el-radio :label="false">
            否
          </el-radio>
        </el-radio-group>
      </el-form-item>
      <!-- <el-form-item label="税筹:">
        <el-radio-group v-model="formData.toTax">
          <el-radio :label="true">
            是
          </el-radio>
          <el-radio :label="false">
            否
          </el-radio>
        </el-radio-group>
      </el-form-item> -->
      <el-form-item label="对公:">
        <!-- <el-switch v-model="formData.toCompany"></el-switch> -->
        <el-radio-group v-model="formData.toCompany">
          <el-radio :label="true">
            是
          </el-radio>
          <el-radio :label="false">
            否
          </el-radio>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="禁用:">
        <!-- <el-switch v-model="formData.status"></el-switch> -->
        <el-radio-group v-model="formData.status">
          <el-radio :label="true">
            是
          </el-radio>
          <el-radio :label="false">
            否
          </el-radio>
        </el-radio-group>
      </el-form-item>
    </el-form>
  </MyDialog>
</template>

<script>
import dialogMixin from "@/mixins/dialogMixin";

export default {
  mixins: [dialogMixin],
  props: {
    initParams1: {
      type: Object,
      required: true,
    },
  },
  data() {
    return {
      formData: this.initParams1,
    };
  },
  /* mounted(){
    console.log(this.initParams1)
  }, */
  methods: {
    goBack() {
      this.initParams1.cb();
    },
    handleConfirmClick() {
      // this.$refs.baseForm.validate((valid) => {
      //   if (valid) {
          this.$emit("confirm", this.formData);
        // }
      // });
    },
  },
};
</script>

<style lang="scss" scoped>
.user-detail {
  height: 100%;
  display: flex;
  flex-direction: column;
  .back {
    padding-top: 20px;
    padding-left: 12px;
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #409eff;
    font-weight: 500;
    cursor: pointer;
    i {
      margin-right: 4px;
      display: inline-block;
    }
  }
}
</style>
